package daily.play2;

import java.net.SocketTimeoutException;
import java.sql.SQLOutput;
import java.util.*;
//
//public class Main {
//    public static void main(String[] args){
//        System.out.println("Just do IT");
//    }
//}

/*
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.println(a+b);
    }
}*/

/*
public class Main{
    public static void main(String[] args){
        Scanner sc   = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        System.out.println((a+b)*c);
    }
}*/
//public class Main{
//    public static void main(String[] args){
//        Scanner sc = new Scanner(System.in);
//        int a = sc.nextInt();
//        int b = sc.nextInt();
//        System.out.print(a/b);
//        System.out.print(" ");
//        System.out.println(a%b);
//    }
//}

//public class Main{
//    public static void main(String[] arg){
//        Scanner sc = new Scanner(System.in);
//        String str1 = new String();
//        String str2 = new String();
//        str1 = sc.nextLine();
//        str2 = sc.nextLine();
//        System.out.println(str1.length());
//        System.out.println(str1.equals(str2));
//        System.out.println(str1.equalsIgnoreCase(str2));
//        System.out.println(str1.compareTo(str2));
//        System.out.println(str1.contains("ni"));
//        System.out.println(str1.toLowerCase());
//        System.out.println(str1.toUpperCase());
//        System.out.println(str1.trim());
//    }
//}

//public class Main{
/*    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        sb.append("Hello world!");
        System.out.println(sb.capacity());
        System.out.println(sb.length());
        System.out.println(sb.reverse());
        System.out.println(sb.deleteCharAt(0));
        System.out.println(sb.replace(0,0,"a"));
        System.out.println(sb.substring(5));
    }
}*/
/*
public class Main{
    public static void main(String[] args) {*/
//        System.out.println(System.currentTimeMillis());
//        System.exit(0);
/*        int [] arr1 = new int[]{1,2,3,4,5};
        int [] arr2 = new int[10];
        System.arraycopy(arr1,0,arr2,0,arr1.length);
        System.out.println(Arrays.toString(arr2));
    }
}*/

//public class Main{
//    public static void main(String[] args) {
//        Properties properties = System.getProperties();
//        Enumeration e = properties.propertyNames();
//        while(e.hasMoreElements()){
//            String key = (String)e.nextElement();
//            String value = properties.getProperty(key);
//            System.out.println(key+"-------->"+value);
//        }
//    }
//}

/*class Person{
    String name;
    int age;
    public Person(String name,int age){
        this.name = name;
        this.age = age;
    }
    public String toString(){
         return "name:"+name+",age:"+age;
    }
}*/

//public class Main{
//    public static void main(String[] args) {
//        Runtime run = Runtime.getRuntime();
//        System.out.println(run.availableProcessors());
//        System.out.println(run.maxMemory());
//        System.out.println(run.totalMemory());
//        System.out.println(run.freeMemory());
//    }
//}
//

//包装类
//public class Main{
//    public static void main(String[] args) {
//        Integer in = 33;
//        System.out.println(in+2);
//        System.out.println(Integer.parseInt("555"));
//
//    }
//}

//public class Main{
//    public static void main(String[] args) {
//        ArrayList<Integer> array = new ArrayList<>();
//        array.add(1);
//        array.add(2);
//        array.add(3);
//        array.add(3);
////        array.remove(3);
//        System.out.println(array.isEmpty());
//        System.out.println(array.size());
//        System.out.println(array);
//        System.out.println(array.get(0));
//        System.out.println(array.indexOf(1));
//        System.out.println(array.lastIndexOf(1));
//    }
//}

/*public class Main{
    public static void main(String[] args) {
        ArrayList<Integer> array = new ArrayList<>();
        array.add(1);
        array.add(2);
        array.add(3);
        array.add(4);
        Iterator<Integer> it  = array.iterator();
        while(it.hasNext()){
            Integer in = it.next();
            if(in==3){
                it.remove();
            }
            System.out.println(in);
        }
        System.out.println(array.size());
    }

}*/
//public class Main{
//    public static void main(String[] args) {
//        HashMap<Integer,String> map = new HashMap<>();
//        map.put(1,"string1");
//        map.put(2,"string2");
//        map.put(3,"string3");
//        System.out.println(map.get(1));
//        HashSet set = (HashSet) map.keySet();
//        HashSet<Map.Entry<Integer,String>>  sset= (HashSet)map.entrySet();
////        Collections.addAll()
//    }
//}

//复习一下system中的getproperties方法

public class Main{
    public static void main(String[] args){

    }
}
